package com.cskaoyan.bean;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class MarketGoods {
    private Integer id;

    @NotBlank(message = "商品编号不能为空！")
    private String goodsSn;

    @NotBlank(message = "商品名称不能为空！")
    private String name;

    private Integer categoryId;

    private Integer brandId;

    private String[] gallery;

    private String keywords;

    private String brief;

    private Boolean isOnSale;

    private Short sortOrder;

    private String picUrl;

    private String shareUrl;

    private Boolean isNew;

    private Boolean isHot;

    private String unit;

    @DecimalMin(value = "0", message = "市场金额必须为数字格式！")
    private String counterPrice;
    // private BigDecimal counterPrice;

    @DecimalMin(value = "0", message = "金额必须为数字格式！")
    private String retailPrice;
    // private BigDecimal retailPrice;

    private Date addTime;

    private Date updateTime;

    private Boolean deleted;

    private String detail;

}